<?php
/*
$Id: quickstart-loading-re.php 49 2011-09-02 13:16:53Z eugim.migue@gmail.com $
*/

//(1)
//any directory adding style you want to adapt: i.e., absolute, relative.
//$absreInstPath = 'D:/WEB/LOCAL_FILES/libraries/re-1.0';
//$relreInstPath =  '../../re-1.0/'; 
$paths = array(
// $absreInstPath
//,$relreInstPath
  dirname(dirname(__FILE__))
);
set_include_path(implode(PATH_SEPARATOR, array_merge(explode(PATH_SEPARATOR, get_include_path()), $paths)));

//(2)
require_once 'standard/re/CodeFile.php';

//(3)
re_CodeFile::load('re');

//Uncomment code below to verify if re was indeed loaded.

//echo class_exists('re'); //must ouput 1.
